package com.qf.myblogssm.dao;

import com.qf.myblogssm.pojo.Tarticle;

import java.util.List;

public interface TarticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Tarticle record);

    Tarticle selectByPrimaryKey(Integer id);

    List<Tarticle> selectAll();

    int updateByPrimaryKey(Tarticle record);

    Integer countNumber();

    Integer countSortNumber();

    List<Tarticle> getArticle_sort_count();

    void star(Integer id);

    List<Tarticle> selectBySort();

    List<Tarticle> selectArticleBySort(String sort);

    Integer getPreArticleById(Integer id);
}